<div class="fr">

  <div id="page_nav"> 
    <span>一共有&nbsp;{{.pageInfo.TotalCount}}&nbsp;条记录&nbsp;&nbsp;</span>
    {{if eq .pageInfo.Current 1}}
    {{else}}
      <a href="/{{.router}}?page={{.pageInfo.Prev}}" class="next">上一页</a>&nbsp;
      {{end}}
    
    {{range .pageInfo.Pages}}

    <!-- 如果是当前页 应该不让点击 且变成红色 -->
    {{if eq . $.pageInfo.Current}}
    <span class="cur">{{.}}</span>&nbsp;
    {{else}}


      <a href="/{{$.router}}?page={{.}}">{{.}}</a>&nbsp;
    {{end}}
    {{end}}

    {{if eq .pageInfo.Current .pageInfo.TotalPages}}
    {{else}}
     <!-- <span>&hellip;</span>&nbsp;
    <a href="/{{.router}}?page={{.pageInfo.TotalPages}}">{{.pageInfo.TotalPages}}</a>&nbsp; -->
    <a href="/{{.router}}?page={{.pageInfo.Next}}" class="next">下一页<span></span></a>&nbsp;
    {{end}}
  </div>
</div>